package service;

import java.util.List;

import domain.ContractModel;
import domain.ContractType;

/**
 * User: xinxin
 * Date: 2016-10-26
 * Time: 15:18
 * FIXME
 */

public interface ContractTypeServiceI {
    ContractType selectTypeById(int id);

    ContractType selectTypeByTypeCode(String typeCode);

    /**
     * 分页查询所有合同范本类型
     * @param pageIndex 页码
     * @param perPage 每页的数量
     * @return
     */
    List<ContractType> selectModelTypeAll(int pageIndex,int perPage);
    List<ContractType> selectModelTypeAll(int pageIndex);
    boolean newContractType(ContractType contractType);

    boolean updateContractType(ContractType contractType);

    boolean deleteContractType(ContractType contractType);
}
